package com.lzh.chatnote.user.service.event;

import com.lzh.chatnote.user.domain.entity.User;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

import javax.annotation.Resource;


@Getter
public class UserOnlineEvent extends ApplicationEvent {

    @Resource
    private User user;

    public UserOnlineEvent(Object source, User user) {
        super(source);
        this.user = user;
    }
}
